<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>图书详细</title>
<style type="text/css">
body {
	font-size: 10pt;
}

div {
	margin: 20px;
	border: 2px solid gray;
	width: 150px;
	height: 150px;
	text-align: center;
}

li {
	margin: 10px;
}

a {
	background: url(< c : url value = '/img/all.png'/ >) no-repeat;
	display: inline-block;
	background-position: 0 -70px;
	margin-left: 30px;
	height: 36px;
	width: 146px;
}

a:hover {
	background: url(< c : url value = '/img/all.png'/ >) no-repeat;
	display: inline-block;
	background-position: 0 -106px;
	margin-left: 30px;
	height: 36px;
	width: 146px;
}

img {
	height: 100px;
	width: 100px;
}
</style>
</head>
<body>
	<div>
		<img src="<c:url value='/${book.image }'/>" border="0" />
	</div>
	<ul>
		<li>书名：${book.bname }</li>
		<li>作者：${book.author }</li>
		<li>单价：${book.price }元</li>
	</ul>
	<form id="form" action="<c:url value='CartServlet'/>" method="post">
		<input type="hidden" name="method" value="add" />
		<input type="hidden" name="bid" value="${book.bid }" />
		<input type="text" size="3" name="count" value="1" />
	</form>
	<a href="javascript:document.getElementById('form').submit();">添加到购物车</a>
</body>
</html>